﻿@using TecentCOS.Extensions;
@{ var routeValues = Request.RequestContext.RouteData.Values;

    var routePath = "/" + routeValues["controller"].ToString() + "/" + routeValues["action"].ToString();
    if (routeValues["controller"].ToString() == "Home" && routeValues["action"].ToString() == "Index")
    {

        routePath = "/";
    }
}
<!DOCTYPE html style="height:100%;">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 腾讯云数据万象测试</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/base64urlsafe")

    <!-- bootstrap & fontawesome -->
    @*@Styles.Render("~/assets/css/bootstrap.min.css")
        @Styles.Render("~/assets/font-awesome/4.5.0/css/font-awesome.min.css")
        @Styles.Render("~/assets/css/fonts.googleapis.com.css")
        @Styles.Render("~/assets/css/ace.min..css")
        @Styles.Render("~/assets/css/ace-skins.min..css")
        @Styles.Render("~/assets/css/ace-rtl.min..css")
        @Scripts.Render("~/assets/js/ace-extra.min.js")*@


    @*ace*@
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="~/assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="~/assets/font-awesome/4.5.0/css/font-awesome.min.css" />

    <!-- page specific plugin styles -->
    <!-- text fonts -->
    <link rel="stylesheet" href="~/assets/css/fonts.googleapis.com.css" />

    @*<link rel="stylesheet" href="~/assets/css/colorbox.min.css" />*@
    <link rel="stylesheet" href="~/Content/viewer.css" />
    <link rel="stylesheet" href="~/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />

    <link rel="stylesheet" href="~/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="~/assets/css/ace-rtl.min.css" />

    <script src="~/assets/js/ace-extra.min.js"></script>


    <script src="~/assets/js/ace-extra.min.js"></script>

    <script src="~/assets/js/jquery-ui.custom.min.js"></script>
    <script src="~/assets/js/jquery.ui.touch-punch.min.js"></script>
    <script src="~/assets/js/jquery.easypiechart.min.js"></script>
    <script src="~/assets/js/jquery.sparkline.index.min.js"></script>
    <script src="~/assets/js/jquery.flot.min.js"></script>
    <script src="~/assets/js/jquery.flot.pie.min.js"></script>
    <script src="~/assets/js/jquery.flot.resize.min.js"></script>

    <!-- ace scripts -->
    <script src="~/assets/js/bootbox.js"></script>
    <script src="~/assets/js/ace-elements.min.js"></script>
    <script src="~/assets/js/ace.min.js"></script>
    @*<script src="~/assets/js/jquery.colorbox.min.js"></script>*@
    <link rel="stylesheet" href="~/Content/nicealert.css" />
    <link rel="stylesheet" href="~/Content/loading.css" />
    <script src="~/Scripts/Viewer.js"></script>
    <script src="~/Scripts/jquery-viewer.js"></script>
    <script src="~/Scripts/nicealert.js"></script>
    <script src="~/Scripts/xmlToJson.js"></script>
    <script src="~/Scripts/loading.js"></script>
</head>

<body class="no-skin">
    <header>
        <div id="navbar" class="navbar navbar-default          ace-save-state">
            <div class="navbar-container ace-save-state" id="navbar-container">
                <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
                    <span class="sr-only">Toggle sidebar</span>

                    <span class="icon-bar"></span>

                    <span class="icon-bar"></span>

                    <span class="icon-bar"></span>
                </button>

                <div class="navbar-header pull-left">
                    <a href="index.html" class="navbar-brand">
                        <small>
                            <i class="fa fa-leaf"></i>
                            腾讯水印测试平台
                        </small>
                    </a>
                </div>


            </div><!-- /.navbar-container -->
        </div>
    </header>

    <div class="main-container">




        <div id="sidebar" class="sidebar responsive ace-save-state" data-sidebar="true" data-sidebar-hover="true">
            <ul class="nav nav-list">
                @Html.CustomMenu(routePath);
            </ul>
            <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                <i id="sidebar-toggle-icon" class="ace-save-state ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
            </div>
        </div>

        @*<section class="side-menu">
                <ul class="nav navbar-nav">
                    <li class="menu-nav">
                        盲水印<span class="caret"></span>
                        <ul class="sub-menu">
                            <li>@Html.MenuLink("添加", "add", "Watermark")</li>
                            <li>@Html.MenuLink("提取", "extract", "Watermark")</li>

                        </ul>

                    </li>

                </ul>
            </section>*@
        <div class="main-content">
            <div class="main-content-inner">
                <div class="breadcrumbs ace-save-state" id="breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <i class="ace-icon fa fa-home home-icon"></i>
                            <a href="/">首页</a>
                        </li>
                        @if (routePath!="/")
                        {
                            <li class="active"><a href='/@routeValues["controller"]/@routeValues["action"]'>@ViewBag.Title</a></li>
                        }
                    </ul><!-- /.breadcrumb -->

                </div>

                <div class="page-content">
                    @RenderBody()


                </div>
            </div>
        </div>
        @*<div class="container body-content">
                    <ol class="breadcrumb">
                        <li> <i class="ace-icon fa fa-home home-icon"></i><a href='/'>首页</a></li>
                        @if (routeValus["controller"].ToString() != "Home")
                        {
                            <li class="active"><a href='/@routeValus["controller"]/@routeValus["action"]'>@ViewBag.Title</a></li>
                        }
                    </ol>
                    @RenderBody()
                </div>
            </div>*@


    </div>


    @RenderSection("scripts", required: false)
    <script>
        $(function () {

            $('.menu-nav').click(function (e) {
                //if (e.target.className == "menu-nav") $(this).children(".sub-menu").slideToggle();
                e.stopPropagation();
                $(this).children(".sub-menu").slideToggle();

            })

            $(document).bind("ajaxSend", function () {
                loading.showLoading({
                    type: 1,
                    tip: "loading"
                })
            }).bind("ajaxComplete", function () {
                loading.hideLoading();
            });
        })
        //$('.main-container').on("click", "table button", function () {

        //    var index = $(this).index("table button") + 1;
        //    //$("#modal1").modal("show");
        //    $("#modal" + index).modal("show");
        //})

        function syntaxHighlight(json) {
            json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
            return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
                var cls = 'number';
                if (/^"/.test(match)) {
                    if (/:$/.test(match)) {
                        cls = 'key';
                    } else {
                        cls = 'string';
                    }
                } else if (/true|false/.test(match)) {
                    cls = 'boolean';
                } else if (/null/.test(match)) {
                    cls = 'null';
                }
                return '<span class="' + cls + '">' + match + '</span>';
            });
        }



                            //$('#main-container #img-response img').viewer();
    </script>
</body>


</html>
